<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>part</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : April 1993</div>
    <p>
      <b>part</b> -  extraction of strings</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>[c]=part(mp,v)  </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>mp,c</b>
        </tt>: string matrices</li>
      <li>
        <tt>
          <b>v</b>
        </tt>: integer vector.</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
    Let <tt>
        <b>s[k]</b>
      </tt> stands for the <tt>
        <b>k</b>
      </tt> character of string <tt>
        <b>s</b>
      </tt> ( 
    or the white space character if <tt>
        <b>k &gt;length(s)</b>
      </tt>).</p>
    <p>
      <tt>
        <b>part</b>
      </tt> returns <tt>
        <b>c</b>
      </tt>, a matrix of character strings, such that 
    <tt>
        <b>c(i,j)</b>
      </tt> is the string <tt>
        <b>"s[v(1)]...s[v(n)]"</b>
      </tt> ( <tt>
        <b>s=mp(i,j)</b>
      </tt> ).</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

c=part(['a','abc','abcd'],[1,1,2])
 
  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="string.htm">
        <tt>
          <b>string</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="length.htm">
        <tt>
          <b>length</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
  </body>
</html>
